home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2001-04-12 | 1.6 KB | 64 lines |
- "FILE"="Xteq Systems X-Setup Plugin 6.0"
- "TYPE"="2"
- "COUNT"="1"
- "UIPATH"="Network\RAS & DUN"
- "NAME"="NetBIOS Timeout"
- "VERSION"="1.06"
- "OSVERSION"="010101"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Timeout (seconds)"
- "DESCRIPTION 1"="If you are performing copy-operations over slow links (e.g. RAS with a 14.4K modem) it is possible that a pop-up message appears:"
- "DESCRIPTION 2"=""Cannot complete input operation". This normally means that the NetBIOS timeout has run out so NT cancels the operation."
- "DESCRIPTION 3"="By default, this value is 45 seconds but you can change it to anything between 1 and 65,535"
- "AUTHOR"="Xteq Systems"
- "CONTACTURL"="http://www.xteq.com"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"=" "
- "COMMENT 2"="Thanks to CptSiskoX for his help!"
-
-
- sP="HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters\"
-
- sV1="SESSTIMEOUT"
- Sub Plugin_Initialize
- i=RegReadValue(sP & sV1)
- SetUIElement 1,i
- End Sub
-
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- i=GetUIElement(1)
- if i>1 and i<65535 then
- Call RegWriteValue(sP & sV1,i,2)
- else
- MsgError "Please enter a number bigger than 1 and smaller than 65,535"
- end if
-
-
- ' Call SetVal(,1)
- ' Call SetVal(sP & sV2,2)
- End Sub
-
-
- Sub SetVal(PAT,IDX)
- i=GetUIElement(IDX)
- if i="" then
- 'Delete Value
- i=RegReadValue(PAT)
-
- if not isEmpty(i) then
- Call RegDeleteValue(PAT)
- end if
- else
- 'Set Value
- Call RegWriteValue(PAT,i,2)
- end if
- End Sub
-
-
-
- Sub Plugin_Terminate
- End Sub
-